//1.对象的属性简写：当对象的属性名和属性值（变量）名称一致，可省略赋值
//2.对象的方法简写

let name = 'jack';
let age = 22;

let obj = {
    name,
    age,
    walk: function(){
        console.log(this.name + "is walk");
    },
    say(){
        console.log(this.name + 'say')
    }
}

obj.walk();
